<%@LANGUAGE="VBSCRIPT"%>
 
<!--#include file="functions.asp" -->
<%
set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = cn
Recordset1.Source = "SELECT *  FROM dbo.EXIAUTHFINANCE"
'Recordset1.CursorType = 0
'Recordset1.CursorLocation = 2
'Recordset1.LockType = 3
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
Dim Repeat1__numRows
Repeat1__numRows = -1
Dim Repeat1__index
Repeat1__index = 0
Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
%>

<SCRIPT Language="JavaScript">

function DocLoad(){

}
</SCRIPT>
<!-- #include file="pagetop.asp" -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#93bee2">
  <tr> 
    <td width="4%">&nbsp;</td>
    <td width="1%">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td width="4%">&nbsp;</td>
    <td width="1%">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td width="4%" height="22">&nbsp;</td>
    <td width="1%" bgcolor="#FFFFFF" height="22"><img src="images/curv_data.gif" width="21" height="21"></td>
    <td bgcolor="#FFFFFF" height="22">&nbsp;</td>
  </tr>
  <tr> 
    <td width="4%">&nbsp;</td>
    <td width="1%" bgcolor="#FFFFFF">&nbsp;</td>
    <td bgcolor="#FFFFFF"> 
      <form name="form1" method="get" action="Fin_Process.asp">
        <table width="100%" border="0" cellspacing="1" cellpadding="3" bgcolor="#999999">
          <tr> 
            <td bgcolor="#D1DDEF" width="10%"> 
              <div align="center"><b>No.</b></div>
            </td>
            <td bgcolor="#D1DDEF" width="25%"> 
              <div align="center"><b>Level</b></div>
            </td>
            <td bgcolor="#D1DDEF" width="15%"> 
              <div align="center"><b>Group</b></div>
            </td>
            <td bgcolor="#D1DDEF" width="10%"> 
              <div align="center"><b>Currency</b></div>
            </td>
            <td bgcolor="#D1DDEF"> 
              <div align="center"><b>Invoice Limit</b></div>
            </td>
            <td bgcolor="#D1DDEF"> 
              <div align="center"><b>Non Po Invoice Limit</b></div>
            </td>
          </tr>
          <% dim tmpGroup 
		  tmpGroup="0"
		  %>
          <% 
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) 
%>
          <tr bgcolor="#FFFFFF"> 
            <td width="10%"> 
              <div align="center"> 
                <input type="hidden" name="seqnum<%=(Recordset1.Fields.Item("SEQNUM").Value)%>" value="<%=(Recordset1.Fields.Item("SEQNUM").Value)%>">
                <%=(Recordset1.Fields.Item("SEQNUM").Value)%></div>
            </td>
            <td width="25%"><%=(Recordset1.Fields.Item("MGRLEVEL").Value)%></td>
            <td width="15%"> 
              <div align="center"><b> 
                <% if (tmpGroup <>Recordset1.Fields.Item("GROUPDESC").Value) then %>
                Group&nbsp;<%=(Recordset1.Fields.Item("GROUPDESC").Value)%> 
                <% end if %>
                </b></div>
            </td>
            <td width="10%"> 
              <div align="center"><%=(Recordset1.Fields.Item("CURRENCY").Value)%></div>
            </td>
            <td> 
              <div align="center"> 
                <input type="text" name="invPO<%=(Recordset1.Fields.Item("SEQNUM").Value)%>" class="NumBox" size="15" value="<%=(FormatNumber((Recordset1.Fields.Item("INVAMTPO").Value), -1, -2, -2, -1))%>">
              </div>
            </td>
            <td> 
              <div align="center"> 
                <input type="text" name="invNonPO<%=(Recordset1.Fields.Item("SEQNUM").Value)%>" class="NumBox" size="15" value="<%=(FormatNumber((Recordset1.Fields.Item("INVAMTNONPO").Value), -1, -2, -2, -1))%>">
              </div>
            </td>
          </tr>
          <% tmpGroup=Recordset1.Fields.Item("GROUPDESC").Value
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  Recordset1.MoveNext()
Wend
%>
          <tr bgcolor="#FFFFFF" valign="middle"> 
            <td colspan="6" height="30"> 
              <input type="submit" name="Submit" value=" Update Changes " class="sbttn">
            </td>
          </tr>
        </table>
      </form>
    </td>
  </tr>
  <tr> 
    <td width="4%">&nbsp;</td>
    <td width="1%" bgcolor="#FFFFFF">&nbsp;</td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
  <tr> 
    <td width="4%">&nbsp;</td>
    <td width="1%" bgcolor="#FFFFFF">&nbsp;</td>
    <td bgcolor="#FFFFFF">&nbsp; </td>
  </tr>
  <tr> 
    <td width="4%">&nbsp;</td>
    <td width="1%" bgcolor="#FFFFFF">&nbsp;</td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
</table>
</body>
</html>
<%
Recordset1.Close()
%>
